From 40db6b8e731b243fc7e9cc23d3b8fc1be4039913 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 12 May 2011 08:57:08 +0100 Subject: [PATCH] nestedsvm: fix host crash with pv-on-hvm Linux KVM guest Nested SVM was unaware of the HVM direct vector eventchn mechanism. Attached patch fixes a host crash when starting a KVM L2 guest on a pv-on-hvm L1 Linux guest (e.g., HVM Debian Squeeze domU). Signed-off-by: Uwe Dannowski Signed-off-by: Christoph Egger Acked-by: Tim Deegan --- xen/arch/x86/hvm/svm/nestedsvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/svm/nestedsvm.c b/xen/arch/x86/hvm/svm/nestedsvm.c index fe03ab2f2c..1dc6dd04ab 100644 --- a/xen/arch/x86/hvm/svm/nestedsvm.c +++ b/xen/arch/x86/hvm/svm/nestedsvm.c @@ -1365,6 +1365,7 @@ nestedsvm_vcpu_interrupt(struct vcpu *v, const struct hvm_intack intack) switch (intack.source) { case hvm_intsrc_pic: case hvm_intsrc_lapic: + case hvm_intsrc_vector: exitcode = VMEXIT_INTR; exitinfo2 = intack.vector; break; -- 2.30.2